import i18n from '@/locales';

const authLogColumns = [
  {
    title: i18n.t('portalAuth.account'),
    dataIndex: 'account',
    key: 'account',
  },
  {
    title: i18n.t('common.ip'),
    dataIndex: 'userIp',
    key: 'user_ip',
  },
  {
    title: i18n.t('authMac.mac'),
    dataIndex: 'userMac',
  },
  {
    title: i18n.t('authLog.devGroup'),
    dataIndex: 'loginArea',
    scopedSlots: { customRender: 'deviceGroup' },
  },
  {
    title: i18n.t('localAccount.authType'),
    dataIndex: 'authType',
    scopedSlots: { customRender: 'authType' },
  },
  {
    title: i18n.t('authLog.reason'),
    dataIndex: 'logoutReason',
  },
  {
    title: i18n.t('common.onlineTime'), //上线时间
    dataIndex: 'loginTime',
    scopedSlots: { customRender: 'timeColumn' },
  },
  {
    title: i18n.t('common.offlineTime'), //下线时间
    dataIndex: 'logoutTime',
    scopedSlots: { customRender: 'timeColumn' },
  },
];
export { authLogColumns };
